import request from '@/config/axios'

// 登录
export const loginApi = (data) => {
  return request.post({
    url: '/login',
    data
  })
}

// 注册
export const registerApi = (data) => {
  return request.post({
    url: '/register',
    data
  })
}

// 找回密码
export const retrievePasswordApi = (data) => {
  return request.post({
    url: '/retrievePassword',
    data
  })
}

// 登出/注销
export const logoutApi = (data) => {
  return request.post({
    url: '/logout',
    data
  })
}

// 获取短信验证码
export const verificationCodeApi = (data) => {
  return request.post({
    url: '/verificationCode',
    data
  })
}
